package com.karl.mytask_2.tools;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;

import org.xutils.x;

/**
 * Created by Karl on 2016/5/27.
 */
public class BaseFragmentActivity extends FragmentActivity{
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        x.Ext.init(getApplication());
        FragmentActivityCollector.addFragmentActivity(BaseFragmentActivity.this);

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        FragmentActivityCollector.removeFragmentActivity(this);
    }
}
